//
//  PrizeModel.m
//  wtshoppingcite
//
//  Created by TW on 15/5/27.
//  Copyright (c) 2015年 TW. All rights reserved.
//

#import "PrizeModel.h"

@implementation PrizeModel

- (id)initWithPrizeList:(NSDictionary *)info{
    if(self = [super init]){
        id amount = [info objectForKey:@"amount"];
        self.amount = ObjToString(amount);
        
        id uid = [info objectForKey:@"id"];
        self.uid = ObjToString(uid);
        
        id level = [info objectForKey:@"level"];
        self.level = ObjToString(level);
        
        id mobile = [info objectForKey:@"mobile"];
        self.mobile = ObjToString(mobile);
        
        id prizeId = [info objectForKey:@"prizeId"];
        self.prizeId = ObjToString(prizeId);
        
        id prizeName = [info objectForKey:@"prizeName"];
        self.prizeName = ObjToString(prizeName);
        
        id unit = [info objectForKey:@"unit"];
        self.unit = ObjToString(unit);
        
        id userId = [info objectForKey:@"userId"];
        self.userId = ObjToString(userId);
        
        id winTime = [info objectForKey:@"winTime"];
        self.winTime = ObjToString(winTime);
        
        id msg = [info objectForKey:@"msg"];
        self.msg = ObjToString(msg);
        
    }
    return self;
}

@end
